﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///库存流水
    ///</summary>
    [SugarTable("t_InventoryLog")]
    public partial class t_InventoryLog
    {
        public t_InventoryLog()
        {


        }
        /// <summary>
        /// Desc:编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:来源单据类型：10:-入库；20-出库；30-盘点；40-手工调整；50-库存调整；
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SourceType { get; set; }

        /// <summary>
        /// Desc:来源单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SourceSN { get; set; }

        /// <summary>
        /// Desc:仓库Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:仓库名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AreaId { get; set; }

        /// <summary>
        /// Desc:库区
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:仓位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? LocationCode { get; set; }

        /// <summary>
        /// Desc:托盘号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PalletBarcode { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNo { get; set; }

        /// <summary>
        /// Desc:原始数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? StartQTY { get; set; }

        /// <summary>
        /// Desc:变更数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? ChangeQTY { get; set; }

        /// <summary>
        /// Desc:最终数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? EndQTY { get; set; }

        /// <summary>
        /// Desc:基本单元Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BaseUnitId { get; set; }

        /// <summary>
        /// Desc:单位名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BaseUnitName { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:生成日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUser { get; set; }

    }
}
